<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/style1.css" rel="stylesheet" type="text/css" />
<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/select.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Static/css/hdjs.css" />
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/hdjs.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/Type/js/addCategory.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/js/select-ui.min.js"></script>
<script>
	var ajaxCheckType = "<?php echo U('ajaxCheckType');?>";
	$(function(){
		$('#addType').validate({
			typename:{
				rule:{
					required:true,
					ajax:{url:ajaxCheckType}
				},
				error:{
					required:'类型不能为空',
				},
				message:'请输入一个类型',
				success:'类型可以使用'				
			}
		})
	})
</script>
  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">类型管理</a></li>
    <li><a href="">添加类型</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
   
    <div id="usual1" class="usual"> 
     
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected">添加分类</a></li> 
    <!--<li><a href="#tab2">自定义</a></li>--> 
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    
    <div class="formtext">Hi，<b><?php echo $hd['session']['adminUser'];?></b>，欢迎管理员大人</div>
    <form action="<?php echo U('addType');?>" method="post" id="addType">
    <ul class="forminfo">
    <li><label for="typename">类型名<b>*</b></label><input id="typename" name="typename" type="text" class="dfinput" placeholder="请输入类型名"  style="width:518px;"/></li>
   
    <li><label>&nbsp;</label><input type="submit" class="btn" value="添加类型"/></li>
    </ul>
    </form>
    </div> 
    
	</div> 

    
    
    </div>


</body>

</html>
